package com.lhdx.practical.service;

import com.lhdx.practical.bean.Depart;
import org.springframework.data.domain.Page;

import java.util.List;

public interface DepartService {
    Depart findById(long id);

    void save(Depart depart);

    List<Depart> getAllDepart();

    List<Depart> findAllByPid(long pid);

    List<Depart> findAllByPidNotOrderBySortDesc(long pid);

    void deleteById(long id);
    int countAllByPid(long pid);

    int countAllByDepartname(String departname);

    Page<Depart> getResultList(int page, int pagesize);


}
